package com.dev.common.constant;


import com.dev.common.util.MD5;

/**
 * 系统常量
 * 
 * @author lsw
 * @date 2015-3-9
 * @vesion 1.0
 * @desc 简要说明
 * 
 */
public class Constant {
	// 编码常量
	public static final String ENCODE_UTF8 = "UTF-8";

	// 页码常量
	public static final int PAGESIZE =5;

	public static final int PAGEFIRST = 1;

	// 是否是叶子节点
	public static final int IS_LEAF = 1;
	public static final int IS_NOT_LEAF = 2;

	// 日期格式
	public static class Date {
		public static final String DATE_TIME = "yyyy-MM-dd HH:mm:ss";
		public static final String DATE = "yyyy-MM-dd";
		public static final String TIME = "HH:mm:ss";
	}

	// 用户初始密码
	public static final String initPassword = MD5.encryption("123456");

	// 编码
	public static class Encoding {
		public static final String UTF8 = "UTF-8";
		public static final String GBK = "gbk";
		public static final String GB2312 = "gb2312";
		public static final String ISO88591 = "ISO8859-1";
	}

	// 排序
	public static class Sort {
		public static final String ASC = "asc";
		public static final String DESC = "desc";
	}

	// 状态
	public static class Status {
		public static final Integer VALID = 1;
		public static final Integer INVALID = 0;
	}

	// 分隔符
	public static class Separator {
		public static final String LOW = ",";
		public static final String MEDIAN = ";";
		public static final String HIGH = "<=>";
	}

	// 请求类型
	public static class Request {
		public static final String POST = "POST";
		public static final String GET = "GET";
	}
}
